package com.syp.hehe.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.syp.hehe.domain.pojo.ThumbSchema;

public interface ThumbMapper {

	public int insert(ThumbSchema r);
	
	public void deleteByUnameAndArtid(@Param("username") String username, @Param("articleId") Long articleId);
	
	public Long countByArtid(Long articleId);
	
	public Long countByUnameAndArtid(@Param("username") String username, @Param("articleId") Long articleId);

	public ThumbSchema getByUUID(String uuid);

	public ThumbSchema getByUnameAndArtid(@Param("username") String username, @Param("articleId") Long articleId);

	public List<ThumbSchema> getPageList(@Param("articleId") Long articleId, @Param("beginIndex") Long beginIndex, @Param("pageSize") Integer pageSize);

	public Boolean hasMorePage(@Param("articleId") Long articleId, @Param("rowIndex") Long rowIndex);

}
